Skip to content

Extend support for more features of VCell expressions#33

Merged
CodeByDrescher merged 8 commits intomainfrom
add_proper_expression_handling
Mar 17, 2026
Merged

Extend support for more features of VCell expressions#33
CodeByDrescher merged 8 commits intomainfrom
add_proper_expression_handling

Conversation

@CodeByDrescher
Copy link
Contributor

PyVCell uses zarr for handling its data, and in python that comes with two core limitations:

  1. The syntax expressions need when dealing with zarr must be in NumExpr's notation. VCell now supports that.
  2. Any results from VCell that are boolean must be represented as a "float", as zarr does not support JSON-serializing booleans.

This PR brings in the changes needed to rectify this, plus also adds a test to prevent regression.

Copy link
Member

@jcschaff jcschaff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please augment test_expressions.py by verifying the computed result from numexpr.

Copy link
Member

@jcschaff jcschaff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work, approved

@CodeByDrescher CodeByDrescher merged commit 12262d0 into main Mar 17, 2026
9 of 12 checks passed
@CodeByDrescher CodeByDrescher deleted the add_proper_expression_handling branch March 17, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SyntaxError when running from vcml file with parameter expressions containing || or &&

2 participants